package com.angel.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.angel.bean.Product;

@Mapper
public interface ProductDao {
    int insert(@Param("product") Product product);

    int insertSelective(@Param("product") Product product);

    int insertList(@Param("products") List<Product> products);

    int update(@Param("product") Product product);

    List<Product> findProduct(@Param("product") Product product);

    List<Product> searchProduct(@Param("product") Product product);

    int delete(@Param("product") Product product);
}
